package top.kaoshanji.p1ch01b;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * 代码清单 p1ch01b-02：在数值字面量中使用下划线(1.3.2节)
 * author kaoshanji
 * ^_^
 * create time 2024/12/22 16:41
 */
public class Underscore {

    private static final Logger logger = LogManager.getLogger(Underscore.class);

    public static void main(String[] args) {
        logger.info("...代码清单 p1ch01b-02：在数值字面量中使用下划线(1.3.2节)...");

        System.out.println(1_500_000);

        double value1 = 5_6.3_4;
        int value2 = 89_3__1;
        System.out.println(value1);
        System.out.println(value2);

    }


}
